/**
 * @Description: js中的异常处理
 * @author Fengli
 * @date 4/29/19
*/
import {Result} from '@/util/Result'
import {CodeEnum} from '@/util/enum/CodeEnum'

/* 添加数据异常 */
export function addDataToDBExceptionHandler (msg) {
  return new Result(msg, CodeEnum.FAIL, null)
}

/*  删除数据异常 */
export function deleteDataExceptionHandler (msg) {
  return new Result(msg, CodeEnum.FAIL, null)
}

/*  更新数据异常 */
export function updateDataExceptionHandler (msg) {
  return new Result(msg, CodeEnum.FAIL, null)
}

/* 查询数据异 */
export function queryDataExceptionHandler (msg) {
  return new Result(msg, CodeEnum.FAIL, null)
}
